package com.home.school.vo;

import com.home.school.bean.TUser;
import lombok.Data;

@Data
public class UserModifyVO {
    private Integer id;
    private String username;
    private String password;
    private Integer sex;
    private String schoolAddress;
    private Integer age;

    public TUser  transferToUser(){
        TUser tUser = new TUser();
        tUser.setId(id);
        tUser.setUsername(username);
        tUser.setPassword(password);
        tUser.setAge(age);
        tUser.setSchoolAddress(schoolAddress);
        tUser.setSex(sex);
        return tUser;
    }
}
